package com.wxzz.elearing.comment.entity;


import com.wxzz.elearning.common.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 技能
 * </p>
 *
 * @author
 * @since 2021-05-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "Skill对象", description = "技能")
public class Skill extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "企业ID")
    private Long enterpriseId;

    @ApiModelProperty(value = "技能发布人")
    private Long userId;

    @ApiModelProperty(value = "技能分类ID")
    @NotNull(message = "请选择对应的技能分类")
    private Long categoryId;

    @ApiModelProperty(value = "技能标题")
    @NotBlank(message = "请输入技能标题")
    @NotNull(message = "请输入技能标题")
    private String skillTitle;

    @ApiModelProperty(value = "技能类型：0-技能沉淀 1-技能中心")
    @NotNull(message = "请选择技能类型")
    private Integer skillType;

    @ApiModelProperty(value = "技能主图")
    @NotBlank(message = "请上传技能主图")
    @NotNull(message = "请上传技能主图")
    private String skillMainPic;

    @ApiModelProperty(value = "技能沉淀(视频URL)")
    private String skillVideoUrl;

    @ApiModelProperty(value = "技能中心文章（富文本）")
    private String skillContent;

    @ApiModelProperty(value = "观看次数")
    private Integer watchNum;

    @ApiModelProperty(value = "评论数量")
    private Integer commentNum;

    @ApiModelProperty(value = "审核状态 0-待审核 1-审核通过 2-审核不通过")
    private Integer checkStatus;

    @ApiModelProperty(value = "是否由企业后台添加")
    private Boolean isBackend;
}
